// 1. 导入vue
import Vue from 'vue'
// 2. 导入app.vue
import app from './App.vue'
// 3. 创建vue实例并渲染app组件

// 引入这个minui
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import App from './App.vue'

Vue.use(MintUI)

// 导入mui样式
import './assets/lib/mui/css/mui.min.css'

// 导入mui字体图标样式
import './assets/lib/mui/css/icons-extra.css'

// 1.1 导入vue-router库
import VueRouter from 'router'
// 1.2 安装vue-router
Vue.use(VueRouter)
    // 1.3 导入vue-router实例
import router from './router/index.js'

// 导入axios
import axios from 'axios'
axios.defaults.baseURL = 'http://47.99.131.153:8899';
Vue.prototype.axios = axios

//  引入时间格式化的插件
import moment from 'moment'
Vue.filter('dataFormat', function(datastr, pattern = 'YYYY-MM-DD HH:mm:ss') {
    return moment(datastr).format(pattern)
})

new Vue({
    el: '#app',
    render: c => c(app),
    router: router
})